<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 字符串用[]解构
        // let [a,b,c,d]= '今天天气真好';

        // console.log(a,b,c,d);


        // 数值和布尔值解构 {}
        // let {toString} = 123;
        // console.log(toString);
        let {toString} = true;
        console.log(toString);


    </script>
</body>
</html>